from speedtest import Speedtest


def Testing_Speed(net):
    download_data = net.download()
    upload_data = net.upload()
    print(f"Download Speed: {download_data / (1024 * 1024)} Mbps")
    print(f"Upload Speed: {upload_data / (1024 * 1024)} Mbps")
    print("开始网速的测试...")


if __name__ == '__main__':
    net = Speedtest()
    Testing_Speed(net)
